package com.hongyuan.venue.ui.person.view_mode;

import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.hongyuan.mvvmhabitx.binding.command.BindingAction;
import com.hongyuan.mvvmhabitx.binding.command.BindingCommand;
import com.hongyuan.venue.base.ItemViewModel;
import com.hongyuan.venue.ui.main.activity.MainActivity;
import com.hongyuan.venue.ui.person.beans.MyCouponBeans;

public class MyCouponItemViewModel extends ItemViewModel<MyCouponViewModel> {

    public ObservableField<MyCouponBeans.ListBean> entity = new ObservableField<>();

    public MyCouponItemViewModel(@NonNull MyCouponViewModel viewModel, MyCouponBeans.ListBean bean) {
        super(viewModel);
        entity.set(bean);
    }


    //去使用
    public BindingCommand goUse = new BindingCommand(new BindingAction() {
        @Override
        public void call() {

            viewModel.startActivity(MainActivity.class);

        }
    });


}
